package restaurant.iterators;

/**
 * The Iterator Interface. Provides sequential access to elements in a
 * collection.
 * 
 * @author Odessa
 */

public interface Iterator
{

	/**
	 * Determines if there is another element in the collection.
	 * 
	 * @return {@code true} if the collection has more elements.
	 */
	public boolean hasNext();



	/**
	 * Returns the next element in the collection.
	 * 
	 * @return the next element in the collection.
	 */
	public Object next();

}
